#ifndef WINDOW_H
#define WINDOW_H

#include "main.h"
#include "resource.h"

class Window
{
public:
	Window(void);
	~Window(void);

	void setCaption(LPCHAR caption);
	void show();
	void maximalize();
	void hide();
	void setSize(int width, int height);
	void setPos(int x, int y);
	void setIcon(WORD icon_id);
	HWND gethWnd();
	DWORD WINAPI redraw();
	void setColor(COLORREF color);

	void initToPaint();

protected:
	Graphics*	db_graphic;
	Bitmap*		db_buffer;

	HWND hWnd;

};

#endif
